package actions;

import java.util.List;
import org.apache.log4j.Logger;
import beans.User;

import com.opensymphony.xwork2.ActionSupport;

import controllers.AbstractController;


public class RemoveModule extends ActionSupport {

	private static final long serialVersionUID = 1164809814839976523L;

	private static final Logger LOGGER = Logger.getLogger(RemoveModule.class);

	
	// -------------------------------------------------------------
	// Objects
	// -------------------------------------------------------------

	AbstractController controller = new AbstractController();

	private String idModule;
	
	private boolean result;
	
	
	// -------------------------------------------------------------
	// Methods
	// -------------------------------------------------------------

	public String execute(){
		setResult(controller.removeModule(Integer.parseInt(getIdModule())));
		return SUCCESS;
	}


	public String getIdModule() {
		return idModule;
	}


	public void setIdModule(String idModule) {
		this.idModule = idModule;
	}


	public boolean isResult() {
		return result;
	}


	public void setResult(boolean result) {
		this.result = result;
	}


}
